<include file="__PUBLIC__/header.html" />
<css file="__PUBLIC__/css/arc.css" />
<css file="__PUBLIC__/css/image.css" />
<js file="__PUBLIC__/js/arc.js" />
<js file="__PUBLIC__/js/image.js" />
<js file="__PUBLIC__/js/drag.js" />
</head>
<body>

		<h2>
            <a href="{|U('addShow')}">添加图片</a>
        </h2>
        <div class="arcslist">
            <table class="table1">
                <thead>
                    <tr style="background:#72A9D3">
                        <!-- 全选box -->
                    	<th width="10"><input type="checkbox" name="selectallbtn"/></th>
                        <th width="10">IID</th>
                        <th>缩略图</th>
                        <th>图片标题</th>
                        <th>图片描述</th>
                        <th>所属栏目</th>
                        <th width="260">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <!-- 遍历所有图片 -->
                    <list from="$data" name="n">
                    <tr class="arclist">
                        <td><input type="checkbox" name="allarc" aid="{$n.aid}"/></td>
                        <td>{$n.iid}</td>
                        <td>
                        	<if value="$n.thumbimg == ''">
                        		<font color="red">图片文件不存在！</font>
                        		<else>
                        		<a href="javascript:void(0)" src="__ROOT__/{$n.thumbimg}" class="thumbimg" ><img src="__ROOT__/{$n.thumbimg}" width="50" height="30" title="{$n.description}" /></a>
                        	</if>
                        </td>
                        <td>{$n.title}</td>
                        <td>{$n.description}</td>
                        <td>{$n.catname}</td>
                        <td>
                            <!-- 图片操作 -->
                            <a href="{|U('editShow',array('iid'=>$n['iid']))}">编辑</a> |
                            <a href="javascript:void(0)" class="thumbimg" src="__ROOT__/{$n.thumbimg}">预览</a> |
                            <a href="javascript:void(0)" class="delimg" iid="{$n.iid}">删除</a>
                        </td>
                    </tr>
                    </list>
                </tbody>
            </table>
            <!-- 图片选项操作 -->
            <div class="cancelAll">
            	<a href="javascript:void(0)" class="selectall">全选</a>
            	<a href="javascript:void(0)" class="toggle">反选</a>
            	<a href="javascript:void(0)" class="delselect">删除</a>
            </div>
        </div><!-- arcslist -->
        <div id="imageshow">
        	<span>关闭</span>
        	<img src="" width="700" height="400" />
        </div>


</body>
</html>